[mp2] panic pthread_key_create failed in apache 2.2/mod_perl 2.0.4
am 21.04.2011 18:17:17 von Ben Evans--bcaec544ec9a3720a204a17013c4
Content-Type: text/plain; charset=ISO-8859-1
Hi,
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
I am running a web server configured via cpanel/whm ( Apache/2.2.16 (Unix)
mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5
mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Phusion_Passenger/2.2.15 mod_perl/2.0.4 Perl/v5.8.8 )
with multiple sites hosted, some are ruby-on-rails / passenger sites and one
is Request Tracker - a perl based support
ticket system. RT is the only perl application I am running.
Every so often (about once every two weeks) I get this error in my apache
error log "panic: pthread_key_create failed"
during a process restart, which then brings down apache completely until
another process restart happens or I manually
restart it.
Doing some investigation on google points me at a bug that was fixed in
mod_perl 1.999_21 on January 22, 2005, which is
odd to me since I am running mod_perl 2.0.4.
Here are some posts and whatnot from that bugfix:
http://www.mail-archive.com/dev@perl.apache.org/msg09562.htm l
http://www.mail-archive.com/perl5-porters@perl.org/msg83913. html
https://bugzilla.redhat.com/show_bug.cgi?id=73486
2. Used Components and their Configuration:
*** mod_perl version 2.000004
*** using /home/cpeasyapache/src/mod_perl-2.0.4/lib/Apache2/BuildConfi g.pm
*** Makefile.PL options:
MP_APR_LIB => aprext
MP_APXS => /usr/local/apache/bin/apxs
MP_COMPAT_1X => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
*** The httpd binary was not found
*** (apr|apu)-config linking info
-L/usr/local/apache/lib -laprutil-1 -lexpat
-L/usr/local/apache/lib -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl
*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.18-53.el5, archname=i386-linux-thread-multi
uname='linux builder10.centos.org 2.6.18-53.el5 #1 smp mon nov 12
02:14:55 est 2007 i686 athlon i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables -Dversion=5.8.8
-Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat,
Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux-thread-multi
-Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads
-Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm
-Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio
-Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less
-isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto
-Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto
-Ud_setservent_r_proto -Dinc_version_list=5.8.7 5.8.6 5.8.5
-Dscriptdir=/usr/bin'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='4.1.2 20080704 (Red Hat 4.1.2-46)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.5.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE '
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Sep 3 2009 10:26:46
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/5.8.8
.
*** Packages of interest status:
Apache2 : -
Apache2::Request : -
CGI : 3.52
ExtUtils::MakeMaker: 6.56
LWP : 6.01
mod_perl : -
mod_perl2 : 2.000004
3. This is the core dump trace: (if you get a core dump):
n/a
This report was generated by /usr/bin/mp2bug on Thu Apr 21 15:38:59 2011
GMT.
-------------8<---------- End Bug Report --------------8<----------
--bcaec544ec9a3720a204a17013c4
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
port ------------8<----------
he/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5=A0
n_Passenger/2.2.15 mod_perl/2.0.4 Perl/v5.8.8 )=A0
sites hosted, some are ruby-on-rails / passenger sites and one is Request T=
racker - a perl based support=A0
r in my apache error log "panic: pthread_key_create failed"=A0 iv>
il another process restart happens or I manually=A0
ug that was fixed in mod_perl 1.999_21 on January 22, 2005, which is=A0 v>
Here are some posts and whatnot from that bugfix:
br>
ing /home/cpeasyapache/src/mod_perl-2.0.4/lib/Apache2/BuildConfi g.pm
=A0 =3D> aprext
apache/bin/apxs
ENERATE_XS =3D> 1
=A0 MP_LIBNAME =A0 =A0 =3D> mod_perl
=3D> 1
div>=A0-L/usr/local/apache/lib -laprutil-1 =A0 =A0 -lexpat
dl
rl5 (revision 5 version 8 subversion 8) configuration:
rm:
thread-multi
14:55 est 2007 i686 athlon i386 gnulinux '
_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --param=3Dssp-buffer-siz=
e=3D4 -m32 -march=3Di386 -mtune=3Dgeneric -fasynchronous-unwind-tables -Dve=
rsion=3D5.8.8 -Dmyhostname=3Dlocalhost -Dperladmin=3Droot@localhost -Dcc=3D=
gcc -Dcf_by=3DRed Hat, Inc. -Dinstallprefix=3D/usr -Dprefix=3D/usr -Darchna=
me=3Di386-linux-thread-multi -Dvendorprefix=3D/usr -Dsiteprefix=3D/usr -Dus=
eshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_s=
emun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3D3pm -Dusepe=
rlio -Dinstallusrbinperl=3Dn -Ubincompat5005 -Uversiononly -Dpager=3D/usr/b=
in/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r=
_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_pro=
to -Ud_setservent_r_proto -Dinc_version_list=3D5.8.7 5.8.6 5.8.5 -Dscriptdi=
r=3D/usr/bin'
ne usemultiplicity=3Ddefine
ndef uselargefiles=3Ddefine usesocks=3Dundef
/div>
iler:
_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr=
/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -I/usr/include/=
gdbm',
fexceptions -fstack-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di=
386 -mtune=3Dgeneric -fasynchronous-unwind-tables',
ppflags=3D'-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdecl=
aration-after-statement -I/usr/local/include -I/usr/include/gdbm'
Hat 4.1.2-46)', gccosandvers=3D''
, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorder=3D1234
=A0 d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdblsize=
=3D12
, nvsize=3D8, Off_t=3D'off_t', lseeksize=3D8
nbytes=3D4, prototype=3Ddefine
=3D-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
/div>
lflags=3D'-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-mult=
i/CORE'
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --para=
m=3Dssp-buffer-size=3D4 -m32 -march=3Di386 -mtune=3Dgeneric -fasynchronous-=
unwind-tables -L/usr/local/lib'
NT_API
009 10:26:46
quot;1"
rl5/vendor_perl
lti
equest =A0 : -
is is the core dump trace: (if you get a core dump):
p2bug on Thu Apr 21 15:38:59 2011 GMT.
---8<----------
--bcaec544ec9a3720a204a17013c4--